import { createApp } from 'vue'
import { createPinia } from 'pinia'
import components from '@/components/index'
import loadingDirect from '@/directives/loading/index'
import permissionDirect from '@/directives/permission'

import './styles/base.css'
import 'virtual:windi.css'
// 引入iconFont
import '//at.alicdn.com/t/c/font_4387590_nmw7iwr5bj.js'
import 'bootstrap/dist/css/bootstrap.css'

import App from './MyApp.vue'
import router from './router'

const app = createApp(App)
app.directive('loading', loadingDirect)
app.directive('permission', permissionDirect)
app.use(components)

app.use(createPinia())
app.use(router)

app.mount('#app')
